﻿@model FortuneCat.WebUI.Models.LogOnViewModel

@{
    ViewBag.Title = "招财猫收支表 - 登录";
}

<script type="text/javascript">
    $(function () {
        $("#logonDialog").dialog({
            autoOpen: true,
            width: 400,
            resizable: false,
            draggable: false,
            buttons: {
                "登录": function () {
                    var dialog = $(this);
                    $("#logonForm").submit();
                }
            }
        });

    });
</script>

<div id="logonDialog" title="招财猫收支表 - 登录">
    @Html.ValidationSummary()

    @using (Html.BeginForm("LogOn", "Account", FormMethod.Post, new { id = "logonForm" })) { 
        <table border="0" cellpadding="0" cellspacing="0" class="form">
            <tr>
                <th>@Html.LabelFor(x => x.UserName)</th>
                <td>@Html.TextBoxFor(x => x.UserName, new { @class = "textbox" })</td>
            </tr>
            <tr>
                <th>@Html.LabelFor(x => x.Password)</th>
                <td>@Html.PasswordFor(x => x.Password, new { @class = "textbox" })</td>
            </tr>
        </table>
    }
</div>
